{ NULL }
};
+static gboolean using_tap;
+
static gboolean
parse_command_line (int *argc, char ***argv)
{
GError *error = NULL;
GOptionContext *context;
+ int i;
context = g_option_context_new ("- run GTK reftests");
g_option_context_add_main_entries (context, test_args, NULL);
return FALSE;
}
+ for (i = 0; i < *argc; i++)
+ {
+ if (strcmp ((*argv)[i], "--tap") == 0)
+ using_tap = TRUE;
+ }
+
gtk_test_init (argc, argv);
if (g_strcmp0 (arg_direction, "rtl") == 0)
main (int argc, char **argv)
{
const char *basedir;
+ int result;
/* I don't want to fight fuzzy scaling algorithms in GPUs,
* so unless you explicitly set it to something else, we
*/
chdir (basedir);
- return g_test_run ();
+ result = g_test_run ();
+
+ if (using_tap)
+ return 0;
+
+ return result;
}